import invest.HistoryAnalyze;
import invest.mapper.StockHistoryMapper;
import invest.model.Record;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.stereotype.Component;
import org.springframework.test.context.junit4.SpringRunner;

import java.io.IOException;
import java.util.List;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = HistoryAnalyze.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@Component
public class test {
    @Autowired
    StockHistoryMapper stockHistoryMapper;
    @Test
    public void t() throws IOException {
        Record record = new Record();
        record.setCode("00001");
        record.setName("ss");
        stockHistoryMapper.insertRecord(record);
    }

    public List<Double> getMoveEverage() {

        return null;
    }
}
